package com.candy.test;

import java.util.Scanner;

public class zy05 {
    public static void main(String[] args) {
        System.out.println("请输入一个年份：");
        Scanner sc=new Scanner(System.in);
        int year=sc.nextInt();
        if(year%4==0&&year%100!=0||year%400==0){
            System.out.println("该年份为闰年");
        }else {
            System.out.println("该年份不是闰年");
        }
    }
}
